package com.lysj.order.app.vo;

import lombok.Data;
import lombok.Getter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 15:06 2019/3/28
 * @ Description: 商户订单vo
 **/
@Data
public class MctOrderVo {

    @Getter
    public enum Status {
        PLACEORDER(1, "下单"),
        SUCCESSPAY(2, "支付成功"),
        REFUND(3, "退款");
        private Integer code;

        private String status;

        Status(Integer code, String status) {
            this.code = code;
            this.status = status;
        }
    }

    private String orderNumber;//订单编号

    private String deskName;//餐桌名称

    private BigDecimal sumMoney;//合计金额

    private Integer status;//订单状态

    @DateTimeFormat(pattern = "yyyy-MM-dd")//将String转换成Date，一般前台给后台传值时用
    private Date createTime;

}
